const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  publicPath:'./',
  devServer: {
    proxy: {
      '/yunzhangfang': {
        target: 'https://llm.yunzhangfang.com',
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/yunzhangfang': '', // 将请求路径中的 '/yunzhangfang' 替换为空字符串
        }
      },
      '/api': {
        target: 'https://tax-robot-server.kjgctest.k5.bigtree.tech',
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': '', // 将请求路径中的 '/api' 替换为空字符串
        }
      }
    }
  }
})
